package com.example.day12_7_12_2.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewbinding.ViewBinding;

import com.example.day12_7_12_2.R;
import com.example.day12_7_12_2.base.BaseAdapter;
import com.example.day12_7_12_2.bean.NaviBean;
import com.example.day12_7_12_2.databinding.LayoutItemBinding;

import java.util.List;

public class InfoRclAdapter extends BaseAdapter<NaviBean.DataBean> {

    public InfoRclAdapter(Context context, List list) {
        super(context, list);
    }

    @Override
    public int getLayout() {
        return R.layout.layout_item;
    }

    @Override
    protected void bindData(ItemHolder holder, NaviBean.DataBean dataBean) {
        TextView tv = (TextView) holder.findView(R.id.tv_name);
        tv.setText(dataBean.getName());
    }

}
